﻿<header class="header">
    <div class="left">
        <a  href="javascript:history.back();"><i class="fa fa-angle-left"></i></a>
    </div>
    <div class="tit">
        <h2>积分商城</h2>
    </div>
    <div class="right"></div>
</header>
<div class="swiper_box">
    <div class="swiper-container swiper1">
        <div class="swiper-wrapper">
            <div class="swiper-slide" ng-click="GoBannerLink(banner)" ng-repeat="banner in banners"><img ng-src="{{banner.image}}" /></div>
        </div>
        <div class="swiper-pagination" id="pagination1"></div>
    </div>
</div>

<!--最新商品-->
<div class="ec_box">
    <h4>最新商品</h4>
    <ul class="shop_box">
        <li ng-repeat="newproduct in newproducts" ng-click="GoProduct(newproduct)">
            <div class="shop_item">
                <div class="product_img"><img ng-src="{{newproduct.image}}" /></div>
                <p class="p_title">{{newproduct.name}}</p>
                <p class="p_price">{{newproduct.points}}积分</p>
            </div>
        </li>
    </ul>
</div>

<!--热门商品-->
<div class="ec_box">
    <h4>热门商品</h4>
    <ul class="shop_box">
        <li ng-repeat="hotproduct in hotproducts" ng-click="GoProduct(hotproduct)">
            <div class="shop_item">
                <div class="product_img"><img ng-src="{{hotproduct.image}}" /></div>
                <p class="p_title">{{hotproduct.name}}</p>
                <p style="color: #DE2A4B;" class="p_price">{{hotproduct.points}}积分</p>
            </div>
        </li>
       
    </ul>
</div>

<!--热门商品-->
<div class="ec_box border_b">
    <h4>大家正在兑</h4>
    <div class="swiper_box">
        <div class="swiper-container swiper2">
            <div class="swiper-wrapper">
                <div class="swiper-slide" ng-repeat="saleproduct in saleproducts"  ng-click="GoProduct(saleproduct)" >
                    <img ng-src="{{saleproduct.image}}" />
                    <p>{{saleproduct.name}}</p>
                    <p>{{saleproduct.firstname}}兑换</p>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="view_all">
    <a class="view_btn" ng-href="#/productlist">查看全部商品</a>
</div>
